home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Compilers⁄Interps / kevoSource / blockfiles.h < prev    next >
Text File  |  1993-05-12  |  931b  |  40 lines

  1. /* Kevo -- a prototype-based object-oriented language */
  2. /* (c) Antero Taivalsaari 1991-1993                   */
  3. /* Some parts (c) Antero Taivalsaari 1986-1988           */
  4. /* blockfiles.h: block file management internals      */
  5.  
  6. /* 
  7.     Traditional Forth-style block files. 
  8.     Not really needed in Kevo, but added for 
  9.     compatibility.
  10. */
  11.  
  12. /*
  13.  
  14. The block file interface consists of the following words:
  15.  
  16.     open-blockfile        Open a block file
  17.     close-blockfile        Close the current block file
  18.     block                Read a block into memory
  19.  
  20.     update                Mark a block dirty, i.e. changed
  21.     discard                Unmark a block
  22.  
  23.     save-buffers        Save all the dirty blocks onto disk
  24.     empty-buffers        Empty the buffers
  25.  
  26.     more                Add new blocks to the end of the file
  27.     capacity            Return the number of blocks in the file
  28.     
  29. */
  30.  
  31. void pOpenBlockFile();
  32. void pCloseBlockFile();
  33. void pBlock();
  34. void pUpdate();
  35. void pDiscard();
  36. void pSaveBuffers();
  37. void pEmptyBuffers();
  38. void pMore();
  39. void pCapacity();
  40.